import $http from '@/service/request.js'

//功能：查询实验完成
//接口：/myexpers/selectover
//GET
export const _sendcontroldata = (account_user) =>{
	return $http.request({
		url:'/myexpers/selectover',
		method:'POST',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			account_user
		}
	})
}										  


// //功能：查看未读消息
// //接口：/woonSocket/find/UnreadMessage
// //GET
// export const _unreadmessage = (receiver) =>{
// 	return $http.request({
// 		url:'/woonSocket/find/UnreadMessage/'+receiver,
// 		method:'GET',
// 		header:{
// 			"Content-Type":"application/json"
// 		}
// 	})
// }


// //功能：查看已读消息
// //接口：find/readMessage
// //GET
// export const _havereadmessage = (receiver) =>{
// 	return $http.request({
// 		url:'/woonSocket/find/readMessage/'+receiver,
// 		method:'GET',
// 		header:{
// 			"Content-Type":"application/json"
// 		}
// 	})
// }

// //功能：查看未读消息
// //接口：/woonSocket/find/UnreadMessage
// //GET
// export const _unreadmessage = (receiver) =>{
// 	return $http.request({
// 		url:'/woonSocket/find/UnreadMessage?receiver='+'15751767501',
// 		method:'GET',
// 		header:{
// 			"Content-Type":"application/json"
// 		}
// 	})
// }

//功能：查看未读消息
//接口：/woonSocket/findUnreadMessage
//GET
export const _unreadmessage = ({receiver}) =>{
	return $http.request({
		url:'/woonSocket/findUnreadMessage',
		method:'GET',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			receiver
		}
	})
}

//功能：查看已读消息
//接口：/findReadMessage
//GET
export const _havereadmessage = ({receiver}) =>{
	return $http.request({
		url:'/woonSocket/findReadMessage',
		method:'GET',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			receiver
		}
	})
}

//功能：查看未读消息个数
//接口：/woonSocket/unReadNumber
//GET
export const _unreadnum = ({receiver}) =>{
	return $http.request({
		url:'/woonSocket/unReadNumber',
		method:'GET',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			receiver
		}
	})
}

//删除所有消息
//接口:/woonSocket/deleteReadAll
//DELETE
export const _deleteallinform = ({receiver}) =>{
	return $http.request({
		url:'/woonSocket/deleteReadAll',
		method:'DELETE',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			receiver
		}
	})
}

// //删除所有消息
// //接口:/woonSocket/deleteReadAll
// //DELETE
// export const _deleteallinform = ({receiver}) =>{
// 	return $http.request({
// 		url:'/woonSocket/deleteReadAll',
// 		method:'DELETE',
// 		header:{
// 			"Content-Type":"application/json"
// 		},
// 		data:{
// 			receiver
// 		}
// 	})
// }


//删除消息
//接口:/myexpers/selectover
//DELETE
export const _deleteInformByID = ({id_user}) =>{
	return $http.request({
		url:'/myexpers/deleteMessage',
		method:'DELETE',
		header:{
			"Content-Type":"application/json"
		},
		data:{
			id_user
		}
	})
}